package top.jiangqiang.qyblog.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.jiangqiang.qyblog.core.base.entity.BaseEntity;

import java.io.Serial;

/**
 * <p>
 * 文章标签
 * </p>
 *
 * @author JiangQiang
 * @since 2023-06-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("qy_tag")
@Schema(name = "Tag", description = "$!{table.comment}")
public class Tag extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "标签名")
    private String name;

    @Schema(description = "标签别名，用作访问路径")
    private String alias;
}
